#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from dragon.selector import Selector
from dragon.page import DraPage

class ErrorPageSe:
    error404Alert = Selector('#app > div > p', '404提示')
    invalidUrlAlert = Selector('p.text1','链接失效提示')
    forbidUrlAlert=Selector('p.text','战法禁止链接访问提示')

class ErrorPage:
    def __init__(self, draPage: DraPage):
        self.draPage=draPage
        self.error404Alert = draPage.locator(ErrorPageSe.error404Alert)
        self.invalidUrlAlert = draPage.locator(ErrorPageSe.invalidUrlAlert)
        self.forbidUrlAlert = draPage.locator(ErrorPageSe.forbidUrlAlert)



